﻿using ErrorOr;
using MediatR;

namespace Gnivc.CarDealership.Api.Application.Commands.Vehicles.CreateVehicle;

public record CreateVehicleCommand(
    Guid ModelId,
    int ReleaseYear,
    int Mileage,
    double EngineVolume,
    int EnginePower,
    int EngineType,
    decimal Price)
    : IRequest<ErrorOr<CreateVehicleResult>>;